package com.ctshk.rpc.user.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 李新科
 * @date 2021/5/19 20:09
 */
@Data
@ApiModel
public class SmsCaptchaReq implements Serializable{

    @ApiModelProperty(name="contactMobileAreaCode", value = "聯繫人手機區號")
    private String contactMobileAreaCode;

    @ApiModelProperty(name = "contactNumber", value = "聯絡電話")
    @Pattern(regexp = "^[0-9]{8,11}$", message = "手机号必须是纯数字,并且是8到11位")
    private String contactNumber;

    @NotNull(message = "验证码类型不能为空")
    @ApiModelProperty(name = "type", value = "验证码类型 1.登录验证码,2.注册验证码,3.修改手机验证码，4.忘记密码验证码,5.修改密码验证码", required = true)
    private Integer type;
}
